package com.entiy;

import java.io.Serializable;
import java.util.Objects;

public class ConnectoiontableEntityPK implements Serializable {
    private String number;
    private String majornumber;

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getMajornumber() {
        return majornumber;
    }

    public void setMajornumber(String majornumber) {
        this.majornumber = majornumber;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ConnectoiontableEntityPK that = (ConnectoiontableEntityPK) o;
        return Objects.equals(number, that.number) && Objects.equals(majornumber, that.majornumber);
    }

    @Override
    public int hashCode() {
        return Objects.hash(number, majornumber);
    }
}
